package com.sservice.model.dao;

import com.sservice.model.entity.Goods;
import com.sservice.model.vo.GoodsVo;
import com.sservice.urp.entity.User;

import java.util.List;

public interface IGoodsDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);

    List<Goods> queryByPage(GoodsVo user);

    /**
     * 获取所有产品的运营账户
     *
     * @return
     */
    String queryGoodsOperator();

    /**
     * 获取运营账户
     *
     * @param operatorIds
     * @return
     */
    List<User> queryGoodsOperatorQQ(List<String> operatorIds);

    /**
     * controller 端产品分类
     *
     * @param user
     * @return
     */
    List<Goods> queryGoodsCategory(GoodsVo user);

    List<Goods> queryFindInSet(Goods user);

    /**
     * 符合统计条件的总数统计
     *
     * @param user
     * @return
     */
    int queryCount(GoodsVo user);

    /**
     * 判断是否运营人员
     *
     * @param user
     * @return
     */
    int isOperator(Goods user);

    /**
     * 根据IDS获取产品
     *
     * @param ids
     * @return
     */
    List<Goods> selectByIds(List<String> ids);
}